package com.gxy.learn.backup.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 配置文读取类
 * @Value方法
 *
 */
@Data
@Component
public class ValueConfig {
    @Value("${com.gxy.learn.am.user.userName}")
    private String userName;
    @Value("${com.gxy.learn.am.user.sex}")
    private Integer sex;
    @Value("${com.gxy.learn.am.user.age}")
    private Integer age;
}
